import { stringify } from 'qs';
import request from '../utils/request';


export async function queryCategories(params) {
    return request.get('/api/shop/category', {params});
}

export async function queryMenus() {
    return request.get('/api/shop/category_menu');
}
export async function fetchService(id) {
    return request.get(`/api/shop/category/${id}`);
}
export async function addService(params) {
    return request.post('/api/shop/category', params);
}

export async function changeService(params) {
    return request.put(`/api/shop/category/${params.id}`, params);
}
export async function removeService(params) {
    return request.delete(`/api/shop/category/${params.id}`);
}

